package com.aggregate.pay.swiftpass.support.client;

import com.aggregate.pay.swiftpass.bean.ReverseData;
import com.aggregate.pay.swiftpass.bean.ReverseResult;
import com.aggregate.pay.swiftpass.support.AbstractClient;
import com.aggregate.pay.swiftpass.support.Merch;

/**
 * 撤销订单API
 * @author Moyq5
 * @date 2019年12月20日
 */
public class Reverse extends AbstractClient<ReverseData, ReverseResult> {

	public Reverse(Merch merch) {
		super(merch);
	}

	@Override
	protected Class<ReverseResult> getResultClass() {
		return ReverseResult.class;
	}

	@Override
	public ReverseResult execute(ReverseData data) {
		data.setService("unified.micropay.reverse");
		return super.execute(data);
	}

}
